<template>
  <div class="msg clear"  >
    <div v-for=" item in systemList" :key="item.id">
      <div class="time clear">{{ item.date.replace(/\-/g,'.')}}</div>
      <div class="content clear">
        <p ><span>{{["您有一张优惠价即将过期~","您本周的成长奖励尚未领取","退款提醒","您有订单即将开场...","叮~您有一份专属会员礼代领！"][item.tit]}}</span></p>
        <div >{{ item.content }}</div>
      </div>
    </div>
    
  </div>
</template>

<script>
  export default {
    data(){
      return{
        // tit:["您有一张优惠价即将过期~","您本周的成长奖励尚未领取","退款提醒","您有订单即将开场...","叮~您有一份专属会员礼代领！"]?
      }
    },
    
     props: {
      systemList: {
      type: Array,
      require: true,
    },
   },
  
  
}
</script>

<style lang="scss" scoped>
.clear::before,.clear::after{
  content: '';
  display: block;
  height: 0;
  clear: both;
  overflow: hidden;
}
.msg {
  background-color: #f7f8fd;
  width: 100%;
  height: 100%;
  position: relative;
  padding-bottom: 100px;
  >div{
    margin-top: 20px;
    
    
  }
  .time{
    height: 24px;
    width: 80px;
    margin: 0 auto;
    color: rgb(255, 255, 255);
    background-color: #959598;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    line-height: 24px;
    margin-bottom: 15px;
    /* position: absolute; */    
  }
  .content{
    width: 325px;
    height: 126px;
    background-color: #fff;
    margin: 0 auto;
    padding: 8px;
    p{
      font-size: 14px;
      line-height: 28px;
      text-indent: 15px;
     
    }
    div:last-child{
      width: 290px;
      height:44px ;
      background-color: #f9f9f9;
      margin: 0 auto;
      font-size: 12px;
      color: #999;
      line-height: 24px;
      padding: 10px 5px;

    }
  }
  
}

</style>